//package com.example.config;
//
//import com.example.pojo.GpsData;
//import com.example.pojo.ResponseVo;
//import com.example.service.SbMessageService;
//import lombok.RequiredArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//import top.javatool.canal.client.annotation.CanalTable;
//import top.javatool.canal.client.handler.EntryHandler;
//@CanalTable("gps_data")
//@Component
//@Slf4j
//@RequiredArgsConstructor
//public class SysUserHandler  implements EntryHandler<GpsData> {
//private SbMessageService sbMessageService;
//
//
//    @Override
//    public void insert(GpsData sysUser) {
//        log.info("新增数据：-------------{}", sysUser);
//        ResponseVo responseVo = sbMessageService.devicLocation(sysUser.getImei());
//        MyWebSocket.sendMessageById(sysUser.getImei(),responseVo);
//    }
//
//    @Override
//    public void update(GpsData before, GpsData after) {
//
//        System.out.println("sdfsdfsdfsdf");
//        log.info("数据变更前：-------------{}", before);
//        log.info("用户信息变更后：-------------{}", after);
//    }
//
//    @Override
//    public void delete(GpsData sysUser) {
//        log.info("删除数据：-------------{}", sysUser);
//    }
//}
